package com.zero.guava.samples.EventBus;

import com.google.common.eventbus.Subscribe;

/**
 * Listener之间的继承关系
 * 定义一个抽象类的Listener
 */

public abstract class AbstractListener {

    @Subscribe
    public void commonTask(final String event){
        System.out.println("Received event ["+event+"] will be handle by "+this.getClass().getSimpleName()+".{commonTask}");
    }

}
